
package parsehtml;

import java.io.IOException;
import java.util.Arrays;
import java.lang.Character;

/**
 *
 * @author d3m
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        URLreader r = new URLreader();
        String htm = new String();
        try {
            //System.out.println(r.read("http://cgi.di.uoa.gr/~std07192/diadikastika.html"));
            htm = r.read("http://cgi.di.uoa.gr/~std07192/diadikastika.html");
        } catch (IOException ex) {
            ex.printStackTrace();
        }
        String[] keywords;
        keywords = htm.split(" ");
        for ( int i=0; i<keywords.length; i++)
            System.out.println(keywords[i]);

       
        
    }

}
